package com.tequila.core.dao;

import com.tequila.domain.dto.OrderItemDto;
import com.tequila.domain.entity.OrderItem;
import com.tequila.domain.query.OrderItemQuery;

import java.util.List;

public interface OrderItemDao {
    OrderItem queryById(Long id);

    List<OrderItemDto> queryByIdList(List<Long> idList);

    List<OrderItemDto> queryListByParam(OrderItemQuery query);

    List<OrderItemDto> queryPageListByParam(OrderItemQuery query);

    int queryPageCountByParam(OrderItemQuery query);

    int insert(OrderItem entity);

    int insertSelective(OrderItem entity);

    int updateById(OrderItem param);

    int updateSelectiveById(OrderItem param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}